var assert = require('assert');
var Beian = require('../lib/beian');
const util = require('util');

describe('Beian Test', function() {

  before(function() {
    // runs before all tests in this block
  });

  after(function() {
    // runs after all tests in this block
  });

  it('Beian query test', function(done) {
    var beian = new Beian('baidu.com');
    beian.startScan();
    beian.on('complete', function (data) {
      console.log("scan complete", util.inspect(data, {}));
      done();
    });
  });

  it('Beian query test', function(done) {
    var beian = new Beian('tabao.com');
    beian.startScan();
    beian.on('complete', function (data) {
      console.log("scan complete", util.inspect(data, {}));
      done();
    });
  });

});
